package org.southyin.securitysamples.service;

import org.southyin.securitysamples.mapper.CmsLogMapper;
import org.southyin.securitysamples.model.CmsLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmsLogService {
    @Autowired
    CmsLogMapper cmsLogMapper;
    public int saveLog(String remoteAddr, String op) {
        return cmsLogMapper.saveLog(remoteAddr,op);
    }

    public List<CmsLog> listLog(String keyWords) {
        return cmsLogMapper.listLog(keyWords);
    }
}
